package org.jeecg.modules.qyxxora.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(value = "省区域预警统计")
public class WarningConditionVo {
    // 广东省分行
    @ApiModelProperty("部门名称")
    private String departName;
    // 预警率
    @ApiModelProperty("预警率")
    private BigDecimal warningRate;
    // 预警余额(合计
    @ApiModelProperty("预警余额(合计")
    private BigDecimal warningRemaining;
    // 红色预警
    @ApiModelProperty("红色预警")
    private BigDecimal warningRed;
    // 橙色预警
    @ApiModelProperty("橙色预警")
    private BigDecimal warningOrange;
    // 蓝色预警
    @ApiModelProperty("蓝色预警")
    private BigDecimal warningBlue;

    @ApiModelProperty("余额总数")
    private BigDecimal total;

    // 企业红色预警
    @ApiModelProperty("企业红色预警")
    private Integer orgWarningRed;
    // 企业橙色预警
    @ApiModelProperty("企业橙色预警")
    private Integer orgWarningOrange;
    // 企业蓝色预警
    @ApiModelProperty("企业蓝色预警")
    private Integer orgWarningBlue;

    public void initZero() {
        this.warningRate = BigDecimal.ZERO;
        this.warningRemaining = BigDecimal.ZERO;
        this.warningRed = BigDecimal.ZERO;
        this.warningBlue = BigDecimal.ZERO;
        this.warningOrange = BigDecimal.ZERO;
        this.orgWarningRed = 0;
        this.orgWarningOrange = 0;
        this.orgWarningBlue = 0;
        this.total = BigDecimal.ZERO;
    }
}
